/*****************************************************************
Wowengine - v0.1

File: wen_input.inl
Creation date: 2009-08-05
*****************************************************************/

/****************************/
// Accesors
/****************************/
bool Input::GetKeyDown(unsigned int uiKeyID)
{
	return ((m_aucKeyBuffer[uiKeyID] & 0x80) != 0);
}
//----------------------------------------------------------------
bool Input::GetKeyEventDown(unsigned int uiKeyID)
{
	return (m_aucKeyEvent[uiKeyID] == KS_DOWN);
}
//----------------------------------------------------------------
bool Input::GetKeyEventUp(unsigned int uiKeyID)
{
	return (m_aucKeyEvent[uiKeyID] == KS_UP);
}
//----------------------------------------------------------------
bool Input::GetMouseBut(unsigned int uiButID)
{
	return ((m_aucMouseBut[uiButID] & 0x80) != 0);
}
//----------------------------------------------------------------
bool Input::GetMouseClick(unsigned int uiButID)
{
	return (m_abMouseButClick[uiButID]);
}
//----------------------------------------------------------------
long Input::GetMouseScrAbsPos(unsigned int uiButID)
{
	return (m_alMouseScreenAbsPos[uiButID]);
}
//----------------------------------------------------------------
long Input::GetMouseRelPos(unsigned int uiButID)
{
	return (m_alMouseRelPos[uiButID]);
}
//----------------------------------------------------------------